<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>收货地址</title>
    <link rel="stylesheet" href="../css/aui.2.0.css">
    <link rel="stylesheet" href="../css/common.css">
    <link rel="stylesheet" href="../css/alert.css">
    <link rel="stylesheet" href="../css/adminaddress.css">
</head>
<body style="background-color: #f0f0f0">
<header class="aui-bar aui-bar-nav">
    <a class="aui-pull-left aui-btn">
        <span class="aui-iconfont aui-icon-left"></span>
    </a>
    <div class="aui-title">收货地址</div>
    <a href="addaddress.html" class="right nojump">添加地址</a>
</header>
<nav>
    <ul id="address-list-box">
        <script id="all-address-template" type="text/x-handlebars-template">
            {{#each listData}}
            <li class="address-box">
                <div class="address-name-tel">
                    <span class="address-name">{{addressName}}</span>

                    <span class="address-tel">{{telChangeStar addressPhone}}</span>
                </div>
                <div class="address-info">{{addressDetail}}</div>
                <ul class="address-select" data-address-id="{{id}}">
                    {{#if (compare isMain '>' 0)}}
                    <li class="address-set-default">
                        <input type="radio" name="defaultAddress" checked class="address-default">
                        设为默认
                    </li>
                    {{else}}
                    <li class="address-set-default">
                        <input type="radio" name="defaultAddress" class="address-default">
                        设为默认
                    </li>
                    {{/if}}
                    <li class="address-edit">
                        <i class="aui-iconfont aui-icon-edit"></i>
                        编辑
                    </li>
                    <li class="address-delete">
                        <i class="aui-iconfont aui-icon-trash"></i>
                        删除
                    </li>
                </ul>
            </li>
            {{/each}}
        </script>
        <li class="none-address">
            暂无收货地址 ....
        </li>

    </ul>
</nav>
<!--<script type="text/x-handlebars-template" id="all-address-template">
    {{#each listData}}
    <li class="order-address order-address1 aui-list-item" data-id="{{id}}">
        <div class="aui-list-item-inner aui-swipe-handle ab">
            <div class="order-address-name ">
                <span>{{addressName}}</span>
                <span>{{addressPhone}}</span>
                {{#if (compare isMain '>' 0)}}
                <span class="default-address">默认地址</span>
                {{else}}
                <span></span>
                {{/if}}
            </div>
            <div class="order-address-detail">{{addressDetail}}</div>
        </div>
        <div class="aui-swipe-btn">
            <div class="aui-btn aui-btn-danger delete-address">删除</div>
        </div>
    </li>
    {{/each}}
</script>-->
<script src="../js/jquery-3.0.0.min.js"></script>
<script src="../js/handlebars-v4.0.10.js"></script>
<script src="../js/config.js"></script>
<script src="../js/common.js"></script>
<script src="../js/function.js"></script>
<script src="../js/alert.js"></script>
<script src="../js/adminaddress.js"></script>

</body>
</html>